package com.hand.wfive.activity

import android.annotation.SuppressLint
import androidx.core.view.isVisible
import com.hand.wfive.BuildConfig
import com.hand.wfive.R
import com.hand.wfive.base.BaseActivity
import com.hand.wfive.loginAndVip.LoginConfig
import com.hand.wfive.util.click.singleClick
import kotlinx.android.synthetic.main.activity_about_us.*

class AboutUsActivity : BaseActivity() {

    override fun getContentViewId() = R.layout.activity_about_us

    @SuppressLint("SetTextI18n")
    override fun init() {
        topBar.setTitle("关于我们")
        topBar.addLeftBackImageButton().singleClick { finish() }

        tv_app_version.text = "V${BuildConfig.VERSION_NAME}"
        if (LoginConfig.ShowQQ) {
            tv_customer_service.isVisible = true
            tv_service_des.isVisible = true

            tv_customer_service.text = "客服QQ: ${LoginConfig.ServiceQQ}"
            tv_service_des.text = LoginConfig.ServiceDesc
        } else {
            tv_customer_service.isVisible = false
            tv_service_des.isVisible = false
        }
    }
}
